class CreateMaterials < ActiveRecord::Migration
  def self.up
    create_table :materials do |t|
      t.string :title
      t.string :sub_title
      t.string :edition_number
      t.string :edition_year
      t.integer :edition_year_numeric
      t.string :isbn
      t.string :issn
      t.float :price
      t.references :currency
      t.text :comment
      t.string :pages
      t.integer :weight
      t.string :height
      t.string :collection
      t.string :section_number
      t.integer :stock
      t.boolean :show_web
      t.boolean :cataloged
      t.references :material_type

      t.timestamps
    end
  end

  def self.down
    drop_table :materials
  end
end
